<%@ page import="com.cheneyjoo.model.SYS_USER" %>
<%@ page import="java.util.Random" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="keyword" content="">
    <title>首页</title>
    <!-- Bootstrap core CSS -->
    <link href="<%=path%>/css/bootstrap.min.css" rel="stylesheet">
    <!--external css-->
    <link href="<%=path%>/css/font-awesome.css" rel="stylesheet"/>
    <!-- Custom styles for this template -->
    <link href="<%=path%>/css/style_index.css" rel="stylesheet">
    <link href="<%=path%>/css/style-responsive.css" rel="stylesheet">
</head>

<body>
<section id="container">
    <!-- **********************************************************************************************************************************************************
        TOP BAR CONTENT & NOTIFICATIONS
        *********************************************************************************************************************************************************** -->
    <!--header start-->
    <header class="header black-bg">
        <div class="sidebar-toggle-box">
            <div class="fa fa-bars tooltips" data-placement="right" data-original-title="Toggle Navigation"></div>
        </div>
        <!--logo start-->
        <a href="index.jsp" class="logo"><b>Lagou<span>Education</span></b></a>
        <!--logo end-->
        <div class="top-menu">
            <ul class="nav pull-right top-menu">
                <li>
                    <a class="logout" href="../login.jsp">Logout</a>
                </li>
            </ul>
        </div>
    </header>
    <!--header end-->
    <!-- **********************************************************************************************************************************************************
        MAIN SIDEBAR MENU
        *********************************************************************************************************************************************************** -->
    <!--sidebar start-->
    <aside>
        <div id="sidebar" class="nav-collapse ">
            <!-- sidebar menu start-->
            <ul class="sidebar-menu" id="nav-accordion">
                <p class="centered">
                    <a href="#" onclick=""><img src="../images/admin.jpg" class="img-circle" width="80"></a>
                </p>
                <h5 class="centered"><%= ((SYS_USER)request.getSession().getAttribute("user")).getUser_name()%></h5>
                <li class="mt">
                    <a href="javascript:void(0)" onclick="redirect('student.jsp')" class="active">
                        <i class="fa fa-group"></i>
                        <span>学生信息管理</span>
                    </a>
                </li>
                <li class="mt">
                    <a href="javascript:void(0)"  onclick="redirect('studentclass.jsp')">
                        <i class="fa fa-bank"></i>
                        <span>班级信息管理</span>
                    </a>
                </li>
            </ul>
            <!-- sidebar menu end-->
        </div>
    </aside>
    <!--sidebar end-->
    <!-- **********************************************************************************************************************************************************
        MAIN CONTENT
        *********************************************************************************************************************************************************** -->
    <!--main content start-->
    <iframe src="" id="index-iframe" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto"  width="100%" style="min-height: 700px; display: inline;"></iframe>
    <!-- /MAIN CONTENT -->
    <!--main content end-->
    <!--footer start-->
    <footer class="site-footer">
        <div class="text-center">
            <p>
                &copy; Copyrights <strong>CheneyJoo</strong>. All Rights Reserved
            </p>
            <div class="credits">
                Created with CheneyJoo template by <a href="https://cheneyjoo.cn/">TemplateMag</a>
            </div>
            <a href="basic_table.html#" class="go-top">
                <i class="fa fa-angle-up"></i>
            </a>
        </div>
    </footer>
    <!--footer end-->
</section>
<!-- js placed at the end of the document so the pages load faster -->
<script src="<%=path%>/js/jquery-1.8.3.min.js"></script>
<script src="<%=path%>/js/bootstrap.min.js"></script>
<script class="include" type="text/javascript" src="<%=path%>/js/jquery.dcjqaccordion.2.7.js"></script>
<script src="<%=path%>/js/jquery.scrollTo.min.js"></script>
<script src="<%=path%>/js/jquery.nicescroll.js" type="text/javascript"></script>
<!--common script for all pages-->
<script src="<%=path%>/js/common-scripts.js?ver=<%=new Random().nextDouble()%>"></script>
<script type="text/javascript">
    function reinitIframe() {
        // console.log('reinitIframe')
        var iframe = document.getElementById("index-iframe");
        try {
            iframe.contentWindow.postMessage('resetHeight', '*');
            var bHeight = iframe.contentWindow.document.body.scrollHeight;
            var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
            var height = Math.max(bHeight, dHeight);
            iframe.height = height;
            //tleft.style.height = (height+130)+'px';
        } catch (ex) {

        }
    }
    window.setInterval("reinitIframe()", 1000);
</script>
<!--script for this page-->
</body>
</html>
